home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / CNetDemo / cnet / sdk / include / manager.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-04  |  1.6 KB  |  45 lines

  1. // introduced as of CNet v4.21 - 06-Aug-96 to perform background
  2. // test and transform of file items.
  3.  
  4. #ifndef CNET_MANAGER
  5.     #define CNET_MANAGER
  6.  
  7.  
  8.  
  9. #define CNETFILEBOX "cnet:MANAGER"
  10.  
  11. // defines for ProcessType of struct TXFile
  12. #define TX_TEST      0x01
  13. #define TX_TRANSFORM 0x02
  14.  
  15. struct TXFile
  16.     {
  17.     LONG id;                    // serial id of the user who posted/uploaded the file
  18.                          // account number not used to avoid awarding creds to the wrong user
  19.  
  20.     char UniqueBase[75];    // physical location (GO keyword) of file to be tested or transformed
  21.                                 // this is only used if PhysNum is -1
  22.  
  23.     short PhysNum;            // (2-Feb-1997) -  Physical subboard NUMBER of the base where the file exists
  24.     ULONG ItemNum;            // unique serial number of message
  25.     char FileName[72];    // name of file to test or transform. FILENAME only, no path
  26.     short ArcNum;            // number of archiver to use in test/tx..
  27.     LONG ProcessType;        // See TX_* bits above
  28.     UBYTE NotifyUser;        // 0=do not notify user
  29.                         // 1=notify user - if online, send SYSTEM OLM, if offline,
  30.                         //   sends mail to user regarding successful or failed
  31.                                 //   test or transform and includes the test results if a test.
  32.                                 // this field is currently ALWAYS 1 (show results)
  33.  
  34.     LONG checksum;    // this must be 0xAAAA or file will not be processed!
  35.     };
  36.  
  37. // to have cnet's manager perform a test or transform, file a single FILLED in
  38. // TXFile structure to a file (with any UNIQUE filename) to CNETFILEBOX
  39. // (defined above).
  40. //
  41. // When the file is closed, cnet-manager will be notified that a new file
  42. // is to be tested or transformed and the manager will then take action.
  43.  
  44. #endif
  45.